///////////////////////////////////////
//
// keyboard.h
//
// keyboard char and scan codes
//
///////////////////////////////////////

#define INSERT       0x5200
#define DELETE       0x5300
#define SPACE        0x3920
#define ESC          0x011b
#define ESCAPE       0x011b
#define PGDN         0x5100
#define PGUP         0x4900
#define PERIOD       0x342e
#define TAB          0x0f09
#define RT_SQUARE    0x1b5d
#define LT_SQUARE    0x1a5b
#define RT_BRACKET   0x1b7d
#define LT_BRACKET   0x1a7b
#define CNTL_HOME    0x7700
#define CNTL_END     0x7500
#define CNTL_ENTER   0x1c0a
#define CNTL_BS      0x0e7f
#define HOME         0x4700
#define END          0x4f00
#define s_BS         0x0008
#define BS           0x0e08
#define BACKSPACE    0x0e08
#define s_CR         0x000d
#define CR           0x1c0d
#define ENTER        0x1c0d
#define UP_ARROW     0x4800
#define RIGHT_ARROW  0x4d00
#define LEFT_ARROW   0x4b00
#define DOWN_ARROW   0x5000
#define F1           0x3b00
#define F2           0x3c00
#define F3           0x3d00
#define F4           0x3e00
#define F5           0x3f00
#define F6           0x4000
#define F7           0x4100
#define F8           0x4200
#define F9           0x4300
#define F10          0x4400


#define SHIFT_TAB    0x0f00
#define SHIFT_HOME   0x4737
#define SHIFT_END    0x4f31
#define SHIFT_INSERT 0x5230
#define SHIFT_DELETE 0x532e
#define SHFT_INSERT  0x5230
#define SHFT_F1      0x5400 
#define SHFT_F2      0x5500
#define SHFT_F3      0x5600 
#define SHFT_F4      0x5700
#define SHFT_F5      0x5800 
#define SHFT_F6      0x5900
#define SHFT_F7      0x5a00 
#define SHFT_F8      0x5b00
#define SHFT_F9      0x5c00 
#define SHFT_F10     0x5d00
#define SH_R_ARROW   0x4d36
#define SH_L_ARROW   0x4b34
#define SH_U_ARROW   0x4838
#define SH_D_ARROW   0x5032


#define CNTL_F1      0x5e00 
#define CNTL_F2      0x5f00
#define CNTL_F3      0x6000 
#define CNTL_F4      0x6100
#define CNTL_F5      0x6200 
#define CNTL_F6      0x6300
#define CNTL_F7      0x6400 
#define CNTL_F8      0x6500
#define CNTL_F9      0x6600 
#define CNTL_F10     0x6700
#define CNTL_LEFTA   0x7300
#define CNTL_RIGHTA  0x7400

#define ALT_F1       0x6800 
#define ALT_F2       0x6900
#define ALT_F3       0x6a00 
#define ALT_F4       0x6b00
#define ALT_F5       0x6c00 
#define ALT_F6       0x6d00
#define ALT_F7       0x6e00 
#define ALT_F8       0x6f00
#define ALT_F9       0x7000 
#define ALT_F10      0x7100

#define ALT_A        0x1e00
#define ALT_B        0x3000
#define ALT_C        0x2e00
#define ALT_D        0x2000
#define ALT_E        0x1200
#define ALT_F        0x2100
#define ALT_G        0x2200
#define ALT_H        0x2300
#define ALT_I        0x1700
#define ALT_J        0x2400
#define ALT_K        0x2500
#define ALT_L        0x2600
#define ALT_M        0x3200
#define ALT_N        0x3100
#define ALT_O        0x1800
#define ALT_P        0x1900
#define ALT_Q        0x1000
#define ALT_R        0x1300
#define ALT_S        0x1f00
#define ALT_T        0x1400
#define ALT_U        0x1600
#define ALT_V        0x2f00
#define ALT_W        0x1100
#define ALT_X        0x2d00
#define ALT_Y        0x1500
#define ALT_Z        0x2c00

#define CNTL_A       0x1e01
#define CNTL_B       0x3002
#define CNTL_C       0x2e03
#define CNTL_D       0x2004
#define CNTL_E       0x1205
#define CNTL_F       0x2106
#define CNTL_G       0x2207
#define CNTL_H       0x2308
#define CNTL_I       0x1709
#define CNTL_J       0x240a
#define CNTL_K       0x250b
#define CNTL_L       0x260c
#define CNTL_M       0x320d
#define CNTL_N       0x310e
#define CNTL_O       0x180f
#define CNTL_P       0x1910
#define CNTL_Q       0x1011
#define CNTL_R       0x1312
#define CNTL_S       0x1f13
#define CNTL_T       0x1414
#define CNTL_U       0x1615
#define CNTL_V       0x2f16
#define CNTL_W       0x1117
#define CNTL_X       0x2d18
#define CNTL_Y       0x1519
#define CNTL_Z       0x2c1a

#define K_0          0x0b30
#define K_1          0x0231
#define K_2          0x0332
#define K_3          0x0433
#define K_4          0x0534
#define K_5          0x0635
#define K_6          0x0736
#define K_7          0x0837
#define K_8          0x0938
#define K_9          0x0a39

#define ALT_0        0x8100
#define ALT_1        0x7800
#define ALT_2        0x7900
#define ALT_3        0x7a00
#define ALT_4        0x7b00
#define ALT_5        0x7c00
#define ALT_6        0x7d00
#define ALT_7        0x7e00
#define ALT_8        0x7f00
#define ALT_9        0x8000

#define K_SPACE      0x3920
#define K_EXCLAM     0x0221
#define K_QUOTE      0x2822
#define K_POUND      0x0423
#define K_DOLLAR     0x0524
#define K_PERCENT    0x0625
#define K_AND        0x0826
#define K_APOST      0x2827
#define K_LPAREN     0x0A28
#define K_RPAREN     0x0B29
#define K_STAR       0x092A
#define K_PLUS       0x0D2B
#define K_COMMA      0x332C
#define K_MINUS      0x0C2D
#define K_PERIOD     0x342E
#define K_FSLASH     0x352F


#define K_COLON      0x273A
#define K_SCOLON     0x273B
#define K_LESS       0x333C
#define K_EQUAL      0x0D3D
#define K_GREAT      0x343E
#define K_QUEST      0x353F
#define K_AMPER      0x0340

#define K_A          0x1E61 - 0x20
#define K_B          0x3062 - 0x20
#define K_C          0x2E63 - 0x20
#define K_D          0x2064 - 0x20
#define K_E          0x1265 - 0x20
#define K_F          0x2166 - 0x20
#define K_G          0x2267 - 0x20
#define K_H          0x2368 - 0x20
#define K_I          0x1769 - 0x20
#define K_J          0x246A - 0x20
#define K_K          0x256B - 0x20
#define K_L          0x266C - 0x20
#define K_M          0x326D - 0x20
#define K_N          0x316E - 0x20
#define K_O          0x186F - 0x20
#define K_P          0x1970 - 0x20
#define K_Q          0x1071 - 0x20
#define K_R          0x1372 - 0x20
#define K_S          0x1F73 - 0x20
#define K_T          0x1474 - 0x20
#define K_U          0x1675 - 0x20
#define K_V          0x2F76 - 0x20
#define K_W          0x1177 - 0x20
#define K_X          0x2D78 - 0x20
#define K_Y          0x1579 - 0x20
#define K_Z          0x2C7A - 0x20
                     
#define K_LBRACK     0x1A5B
#define K_BSLASH     0x2B5C
#define K_RBRACK     0x1B5D
#define K_KARAT      0x075E
#define K_UNDER      0x0C5C
                     
#define K_a          0x1E61
#define K_b          0x3062
#define K_c          0x2E63
#define K_d          0x2064
#define K_e          0x1265
#define K_f          0x2166
#define K_g          0x2267
#define K_h          0x2368
#define K_i          0x1769
#define K_j          0x246A
#define K_k          0x256B
#define K_l          0x266C
#define K_m          0x326D
#define K_n          0x316E
#define K_o          0x186F
#define K_p          0x1970
#define K_q          0x1071
#define K_r          0x1372
#define K_s          0x1F73
#define K_t          0x1474
#define K_u          0x1675
#define K_v          0x2F76
#define K_w          0x1177
#define K_x          0x2D78
#define K_y          0x1579
#define K_z          0x2C7A
                     
//
// end of keyboard.h
//
///////////////////////////////////////



